//---------------------------------------------------------------------------

#ifndef CAMIONH
#define CAMIONH
//---------------------------------------------------------------------------
#include "CKiloutouMachine.h"
#include "vCamion.h"
#include <stdctrls.hpp>

class CCamion : public CKiloutouMachine
{
    private:
        double m_dPoidsTotal;
        double m_dPoidsTransportable;
        
    public:
        __fastcall CCamion( const AnsiString &asNom,
                            const AnsiString &asDescription,
                            const double &dPrix,
                            const double &dPTotal,
                            const double &dPTransportable,
                            const int &Numero_Materiel);

        __fastcall CCamion( void );
        void __fastcall Affecter(const AnsiString &asNom,
                                 const AnsiString &asDescription,
                                 const double &dPrix,
                                 const double &dPTotal,
                                 const double &dPTransportable,
                                 const int &Numero_Materiel);

        bool __fastcall Ajouter( void );
        bool __fastcall Modifier( void );
        bool __fastcall Supprimer( void );

    private:
        AnsiString __fastcall GetLibelle( void );

    public:
       __property double  __fastcall PoidsTotal = { read=m_dPoidsTotal, write=m_dPoidsTotal };
       __property double  __fastcall PoidsTransportable = { read=m_dPoidsTransportable, write=m_dPoidsTransportable };
};

#endif
 